<%@page contentType="text/html" pageEncoding="iso-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="layout" uri="/WEB-INF/tlds/layout.tld" %>

<jsp:useBean id="avaliador" scope="session" class="avaliacao.DTO.DTOAvaliador"/>
<c:set var="grupo" scope="page">
    <jsp:getProperty name="avaliador" property="grupo"/>
</c:set>

<layout:head>
    <%-- Insert extra scripts and styles here --%>
</layout:head>

    <body>

        <!-- Simple conditional tag that establishes a context for mutually
        exclusive conditional operations  -->
        <!-- test = The test condition that determines whether or not
             the body content should be processed.-->
        <c:choose>
            <c:when test="${grupo == 'admin'}" >
                <div style="border:1px solid black;">
                        <table>
                            <tr>
                                <td align="left">
                                    <font size="-1"><b>
                                        Bem-Vindo(a), <jsp:getProperty name="avaliador" property="nome" />!
                                        </b></font>
                                        <br>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <font size="-1">
                                        <A HREF="Controller?pageHandler=BuscaAvaliador&id=${avaliador.ID}" style="text-decoration: none">Atualizar Perfil</A>
                                        <br>
                                        <A HREF="edicaoSenha.jsp" style="text-decoration: none">Trocar Senha</A>
                                        <br>
                                        <A HREF="Controller?pageHandler=Logout" style="text-decoration: none">Sair</A>
                                        <br>
                                        <br>
                                    </font>
                                    <!--<A HREF="#" onclick="submitForm('sair');">Sair -->
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <font size="-1">Cadastros</font>
                                    <br>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <font size="-1">
                                        <A HREF="cadastroUniversidade.jsp" style="text-decoration: none">Universidade</A>
                                        <br>
                                        <A HREF="cadastroAvaliador.jsp" style="text-decoration: none">Avaliador</A>
                                        <br>
                                        <A HREF="cadastroAvaliacao.jsp" style="text-decoration: none">Avalia&ccedil;&atilde;o</A>
                                        <br>
                                        <A HREF="principal.jsp" id="mainW" style="text-decoration: none">Avaliadores para Universidades</A>
                                        <br>
                                        <br>
                                    </font>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <font size="-1">Dados</font>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <font size="-1">
                                        <A HREF="buscaUniversidade.jsp" style="text-decoration: none">Universidade</A>
                                        <br>
                                        <A HREF="Controller?pageHandler=ListaAvaliadores" style="text-decoration: none">Lista de Avaliadores</A>
                                        <br>
                                        <br>
                                    </font>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <font size="-1">Relat&oacute;rios</font>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <font size="-1">
                                        <A HREF="principal.jsp" id="mainW" style="text-decoration: none">Universidades credenciadas</A>
                                        <br>
                                        <A HREF="formulario.jsp" style="text-decoration: none">Universidades n&atilde;o credenciadas</A>
                                        <br>
                                        <A HREF="formulario.jsp" style="text-decoration: none">Universidades pendentes</A>
                                        <br>
                                    </font>
                                </td>
                            </tr>
                        </table>
                </div>
            </c:when>
            <c:otherwise>
                Voc&ecirc; n&atilde;o tem permiss&atilde;o para acessar esta p&aacute;gina.
            </c:otherwise>
        </c:choose>
    </body>

</html>
